package com.anycl.design.j2ee.businessdelegate;

/**
 * 业务查询服务
 */
public class BusinessLookUp {
    /**
     * 根据具体的业务类型，查询具体的业务类型的办理人（服务）
     */
    public BusinessService getBusinessService(String serviceType) {
        if ("type1".equalsIgnoreCase(serviceType))
            return new BusinessServiceImpl1();
        else
            return new BusinessServiceImpl2();
    }
}
